package com.xdjd.mobile.business.dao.mapper.activity;

import com.xdjd.mobile.business.entity.model.activity.ActivityClockSuperviseRecordPo;
import net.oschina.durcframework.easymybatis.dao.CrudDao;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface ActivityClockSuperviseRecordPoDao extends CrudDao<ActivityClockSuperviseRecordPo> {
    @Update("update activity_clock_supervise_record set additional_bonus=additional_bonus+#{bonus} where member_id=#{memberId} and clock_no=#{clockNo}")
    int addClockBonus(@Param("memberId") Long memberId, @Param("clockNo") String clockNo, @Param("bonus") Long bonus);
}